Detecting and classifying workspace regions for safety monitoring

ABSTRACT

Systems and methods monitor a workspace for safety purposes using sensors distributed about the workspace. The sensors are registered with respect to each other, and this registration is monitored over time. Occluded space as well as occupied space is identified, and this mapping is frequently updated.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims priority to and the benefit of, and incorporatesherein by reference in their entireties, U.S. Provisional PatentApplication Nos. 62/455,828 and 62/455,834, both filed on Feb. 7, 2017.

FIELD OF THE INVENTION

The field of the invention relates, generally, to monitoring ofindustrial environments where humans and machinery interact or come intoproximity, and in particular to systems and methods for detecting unsafeconditions in a monitored workspace.

BACKGROUND

Industrial machinery is often dangerous to humans. Some machinery isdangerous unless it is completely shut down, while other machinery mayhave a variety of operating states, some of which are hazardous and someof which are not. In some cases, the degree of hazard may depend on thelocation or distance of the human with respect to the machinery. As aresult, many “guarding” approaches have been developed to separatehumans and machines and to prevent machinery from causing harm tohumans. One very simple and common type of guarding is simply a cagethat surrounds the machinery, configured such that opening the door ofthe cage causes an electrical circuit to place the machinery in a safestate. If the door is placed sufficiently far from the machinery toensure that the human can't reach it before it shuts down, this ensuresthat humans can never approach the machinery while it is operating. Ofcourse, this prevents all interaction between human and machine, andseverely constrains use of the workspace.

More sophisticated types of guarding may involve, for example, opticalsensors. Examples include light curtains that determine if any objecthas intruded into a region monitored by one or more light emitters anddetectors, and 2D LIDAR sensors that use active optical sensing todetect the minimum distance to an obstacle along a series of raysemanating from the sensor, and thus can be configured to detect eitherproximity or intrusion into pre-configured two-dimensional (2D) zones.More recently, systems have begun to employ 3D depth information using,for example, 3D time-of-flight cameras, 3D LIDAR, and stereo visioncameras. These sensors offer the ability to detect and locate intrusionsinto the area surrounding industrial machinery in 3D, which has severaladvantages. For example, a 2D LIDAR system guarding an industrial robotwill have to stop the robot when an intrusion is detected well beyond anarm's-length distance away from the robot, because if the intrusionrepresents a person's legs, that person's arms could be much closer andwould be undetectable by the 2D LIDAR. However, a 3D system can allowthe robot to continue to operate until the person actually stretches hisor her arm towards the robot. This allows a much tighter interlockbetween the actions of the machine and the actions of the human, whichfacilitates many applications and saves space on the factory floor,which is always at a premium. Additionally, in complex workcells it canbe very difficult to determine a combination of 2D planes thateffectively monitors the entire space; 3D sensors properly configured,can alleviate this issue.

Because human safety is at stake, guarding equipment must typicallycomply with stringent industry standards. These standards may specifyfailure rates for hardware components and rigorous development practicesfor both hardware and software components. Standards-compliant systemsmust ensure that dangerous conditions can be detected with very highprobability, that failures of the system itself are detected, and thatthe system responds to detected failures by transitioning the equipmentbeing controlled to a safe state. Simply keeping humans and machinesapart represents a far simpler guarding task than detecting unsafeconditions when humans actively work with machines that can injure them.However, the separation of human and machines is not always optimal forproductivity. An example of a potential collaborative application is theinstallation of a dashboard in a car—the dashboard is heavy anddifficult for a human to maneuver but easy for a machine, and attachingit requires a variety of connectors and fasteners that require humandexterity and flexibility to handle correctly. Conventional guardingsystems are insufficiently granular in operation to reliably monitorsuch collaborative environments.

Existing 3D sensor systems offer the possibility of improved granularityin guarding systems. But 3D sensor systems can be difficult to configureas compared with 2D sensor systems. First, specific safety zones must bemust be designed and configured for each use case, taking into accountthe specific hazards posed by the machinery, the motion and trajectoryof the machinery, the possible actions of humans in the workspace, theworkspace layout, and the location and field of view of each individualsensor. It can be difficult to calculate the optimal shapes of exclusionzones, especially when trying to preserve safety while optimizing floorspace and system throughput, where one object may present an occlusionrelative to a sensor, and where some objects may be out of range orundetectable to the sensor.

Mistakes in the configuration can result in serious safety hazards,requiring significant overhead in design and testing. All of this workmust be completely redone if any changes are made to the workspace. Theextra degree of freedom presented by 3D systems results in a much largerset of possible configurations and hazards. Accordingly, a need existsfor improved and computationally tractable techniques for monitoring a3D workspace with high granularity.

SUMMARY

Embodiments of the present invention provide systems and methods formonitoring a workspace for safety purposes using sensors distributedabout the workspace. The workspace may contain one or more pieces ofequipment that can be dangerous to humans, for example, and industrialrobot and auxiliary equipment such as parts feeders, rails, clamps, orother machines. The sensors are registered with respect to each other,and this registration is monitored over time. Occluded space as well asoccupied space is identified, and this mapping is frequently updated.

Regions within the monitored space may be marked as occupied, unoccupiedor unknown; only empty space can ultimately be considered safe, and onlywhen any additional safety criteria—e.g., minimum distance from a pieceof controlled machinery—is satisfied. In general, raw data from eachsensor is analyzed to determine whether, throughout the zone of coveragecorresponding to the sensor, an object or boundary of the 3D mappedspace has been definitively detected.

As a person moves within a 3D space, he or she will typically occludesome areas from some sensors, resulting in areas of space that aretemporarily unknown. Additionally, moving machinery such as anindustrial robot arm can also temporarily occlude some areas. When theperson or machinery moves to a different location, one or more sensorswill once again be able to observe the unknown space and return it tothe confirmed-empty state and therefore safe for the robot or machine tooperate in this space. Accordingly, in some embodiments, space may alsobe classified as “potentially occupied.” Unknown space is consideredpotentially occupied when a condition arises where unknown space couldbe occupied. This could occur when unknown space is adjacent to entrypoints to the workspace or if unknown space is adjacent to occupied orpotentially occupied space. The potentially occupied space “infects”unknown space at a rate that is representative of a human moving throughthe workspace. Potentially occupied space stays potentially occupieduntil it is observed to be empty. For safety purposes, potentiallyoccupied space is treated the same as occupied space.

For some sensor modalities such as those relying on an active opticalsignal, the ability of a sensor to definitively detect an object orboundary falls off rapidly with distance; that is, beyond a certaindistance, a sensor may not be capable of distinguishing between anobject and empty space, since the associated illumination levels are toosimilar. Points or regions at such locations are marked as “unknown”with respect to the relevant sensor, and regions so marked cannot beconfirmed as empty by that sensor.

In general, as used herein, the term “substantially” means ±10%, and insome embodiments, ±5%. In addition, reference throughout thisspecification to “one example,” “an example,” “one embodiment,” or “anembodiment” means that a particular feature, structure, orcharacteristic described in connection with the example is included inat least one example of the present technology. Thus, the occurrences ofthe phrases “in one example,” “in an example,” “one embodiment,” or “anembodiment” in various places throughout this specification are notnecessarily all referring to the same example. Furthermore, theparticular features, structures, routines, steps, or characteristics maybe combined in any suitable manner in one or more examples of thetechnology. The headings provided herein are for convenience only andare not intended to limit or interpret the scope or meaning of theclaimed technology.

BRIEF DESCRIPTION OF THE DRAWINGS

In the drawings, like reference characters generally refer to the sameparts throughout the different views. Also, the drawings are notnecessarily to scale, with an emphasis instead generally being placedupon illustrating the principles of the invention. In the followingdescription, various embodiments of the present invention are describedwith reference to the following drawings, in which:

FIG. 1 is a perspective view of a monitored workspace in accordance withan embodiment of the invention.

FIG. 2 schematically illustrates classification of regions within themonitored workspace in accordance with an embodiment of the invention.

FIG. 3 schematically illustrates a control system in accordance with anembodiment of the invention.

FIG. 4 schematically illustrates an object-monitoring system inaccordance with an embodiment of the invention.

FIG. 5 schematically illustrates the definition of progressive safetyenvelopes in proximity to a piece of industrial machinery.

DETAILED DESCRIPTION

In the following discussion, we describe an integrated system formonitoring a workspace, classifying regions therein for safety purposes,and dynamically identifying safe states. In some cases the latterfunction involves semantic analysis of a robot in the workspace andidentification of the workpieces with which it interacts. It should beunderstood, however, that these various elements may be implementedseparately or together in desired combinations; the inventive aspectsdiscussed herein do not require all of the described elements, which areset forth together merely for ease of presentation and to illustratetheir interoperability. The system as described represents merely oneembodiment.

1. Workspace Monitoring

Refer first to FIG. 1, which illustrates a representative 3D workspace100 monitored by a plurality of sensors representatively indicated at1021, 1022, 1023. The sensors 102 may be conventional optical sensorssuch as cameras, e.g., 3D time-of-flight cameras, stereo vision cameras,or 3D LIDAR sensors or radar-based sensors, ideally with high framerates (e.g., between 30 Hz and 100 Hz). The mode of operation of thesensors 102 is not critical so long as a 3D representation of theworkspace 100 is obtainable from images or other data obtained by thesensors 102. As shown in the figure, sensors 102 collectively cover andcan monitor the workspace 100, which includes a robot 106 controlled bya conventional robot controller 108. The robot interacts with variousworkpieces W, and a person P in the workspace 100 may interact with theworkpieces and the robot 108. The workspace 100 may also contain variousitems of auxiliary equipment 110, which can complicate analysis of theworkspace by occluding various portions thereof from the sensors.Indeed, any realistic arrangement of sensors will frequently be unableto “see” at least some portion of an active workspace. This isillustrated in the simplified arrangement of FIG. 1: due to the presenceof the person P, at least some portion of robot controller 108 may beoccluded from all sensors. In an environment that people traverse andwhere even stationary objects may be moved from time to time, theunobservable regions will shift and vary.

As shown in FIG. 2, embodiments of the present invention classifyworkspace regions as occupied, unoccupied (or empty), or unknown. Forease of illustration, FIG. 2 shows two sensors 202 ₁, 202 ₂ and theirzones of coverage 205 ₁, 205 ₂ within the workspace 200 in twodimensions; similarly, only the 2D footprint 210 of a 3D object isshown. The portions of the coverage zones 205 between the objectboundary and the sensors 200 are marked as unoccupied, because eachsensor affirmatively detects no obstructions in this intervening space.The space at the object boundary is marked as occupied. In a coveragezone 205 beyond an object boundary, all space is marked as unknown; thecorresponding sensor is configured to sense occupancy in this regionbut, because of the intervening object 210, cannot do so.

With renewed reference to FIG. 1, data from each sensor 102 is receivedby a control system 112. The volume of space covered by eachsensor—typically a solid cone—may be represented in any suitablefashion, e.g., the space may be divided into a 3D grid of small (5 cm,for example) cubes or “voxels” or other suitable form of volumetricrepresentation. For example, workspace 100 may be represented using 2Dor 3D ray tracing, where the intersections of the 2D or 3D raysemanating from the sensors 102 are used as the volume coordinates of theworkspace 100. This ray tracing can be performed dynamically or via theuse of precomputed volumes, where objects in the workspace 100 arepreviously identified and captured by control system 112. Forconvenience of presentation, the ensuing discussion assumes a voxelrepresentation; control system 112 maintains an internal representationof the workspace 100 at the voxel level, with voxels marked as occupied,unoccupied, or unknown.

FIG. 3 illustrates, in greater detail, a representative embodiment ofcontrol system 112, which may be implemented on a general-purposecomputer. The control system 112 includes a central processing unit(CPU) 305, system memory 310, and one or more non-volatile mass storagedevices (such as one or more hard disks and/or optical storage units)312. The system 112 further includes a bidirectional system bus 315 overwhich the CPU 305, memory 310, and storage device 312 communicate witheach other as well as with internal or external input/output (I/O)devices such as a display 320 and peripherals 322, which may includetraditional input devices such as a keyboard or a mouse). The controlsystem 112 also includes a wireless transceiver 325 and one or more I/Oports 327. Transceiver 325 and I/O ports 327 may provide a networkinterface. The term “network” is herein used broadly to connote wired orwireless networks of computers or telecommunications devices (such aswired or wireless telephones, tablets, etc.). For example, a computernetwork may be a local area network (LAN) or a wide area network (WAN).When used in a LAN networking environment, computers may be connected tothe LAN through a network interface or adapter; for example, asupervisor may establish communication with control system 112 using atablet that wirelessly joins the network. When used in a WAN networkingenvironment, computers typically include a modem or other communicationmechanism. Modems may be internal or external, and may be connected tothe system bus via the user-input interface, or other appropriatemechanism. Networked computers may be connected over the Internet, anIntranet, Extranet, Ethernet, or any other system that providescommunications. Some suitable communications protocols include TCP/IP,UDP, or OSI, for example. For wireless communications, communicationsprotocols may include IEEE 802.11x (“Wi-Fi”), Bluetooth, ZigBee, IrDa,near-field communication (NFC), or other suitable protocol. Furthermore,components of the system may communicate through a combination of wiredor wireless paths, and communication may involve both computer andtelecommunications networks.

CPU 305 is typically a microprocessor, but in various embodiments may bea microcontroller, peripheral integrated circuit element, a CSIC(customer-specific integrated circuit), an ASIC (application-specificintegrated circuit), a logic circuit, a digital signal processor, aprogrammable logic device such as an FPGA (field-programmable gatearray), PLD (programmable logic device), PLA (programmable logic array),RFID processor, graphics processing unit (GPU), smart chip, or any otherdevice or arrangement of devices that is capable of implementing thesteps of the processes of the invention.

The system memory 310 contains a series of frame buffers 335, i.e.,partitions that store, in digital form (e.g., as pixels or voxels, or asdepth maps), images obtained by the sensors 102; the data may actuallyarrive via I/O ports 327 and/or transceiver 325 as discussed above.System memory 310 contains instructions, conceptually illustrated as agroup of modules, that control the operation of CPU 305 and itsinteraction with the other hardware components. An operating system 340(e.g., Windows or Linux) directs the execution of low-level, basicsystem functions such as memory allocation, file management andoperation of mass storage device 312. At a higher level, and asdescribed in greater detail below, an analysis module 342 registers theimages in frame buffers 335 and analyzes them to classify regions of themonitored workspace 100. The result of the classification may be storedin a space map 345, which contains a volumetric representation of theworkspace 100 with each voxel (or other unit of representation) labeled,within the space map, as described herein. Alternatively, space map 345may simply be a 3D array of voxels, with voxel labels being stored in aseparate database (in memory 310 or in mass storage 312).

Control system 112 may also control the operation or machinery in theworkspace 100 using conventional control routines collectively indicatedat 350. As explained below, the configuration of the workspace and,consequently, the classifications associated with its voxelrepresentation may well change over time as persons and/or machines moveabout, and control routines 350 may be responsive to these changes inoperating machinery to achieve high levels of safety. All of the modulesin system memory 310 may be programmed in any suitable programminglanguage, including, without limitation, high-level languages such as C,C++, C#, Ada, Basic, Cobra, Fortran, Java, Lisp, Perl, Python, Ruby, orlow-level assembly languages.

1.1 Sensor Registration

In a typical multi-sensor system, the precise location of each sensor102 with respect to all other sensors is established during setup.Sensor registration is usually performed automatically, and should be assimple as possible to allow for ease of setup and reconfiguration.Assuming for simplicity that each frame buffer 335 stores an image(which may be refreshed periodically) from a particular sensor 102,analysis module 342 may register sensors 102 by comparing all or part ofthe image from each sensor to the images from other sensors in framebuffers 335, and using conventional computer-vision techniques toidentify correspondences in those images. Suitable global-registrationalgorithms, which do not require an initial registration approximation,generally fall into two categories: feature-based methods andintensity-based methods. Feature-based methods identify correspondencesbetween image features such as edges while intensity-based methods usecorrelation metrics between intensity patterns. Once an approximateregistration is identified, an Iterative Closest Point (ICP) algorithmor suitable variant thereof may be used to fine-tune the registration.

If there is sufficient overlap between the fields of view of the varioussensors 102, and sufficient detail in the workspace 100 to providedistinct sensor images, it may be sufficient to compare images of thestatic workspace. If this is not the case, a “registration object”having a distinctive signature in 3D can be placed in a location withinworkspace 100 where it can be seen by all sensors. Alternatively,registration can be achieved by having the sensors 102 record images ofone or more people standing in the workspace or walking throughout theworkspace over a period of time, combining a sufficient number ofpartially matching images until accurate registration is achieved.

Registration to machinery within the workspace 100 can, in some cases,be achieved without any additional instrumentation, especially if themachinery has a distinctive 3D shape (for example, a robot arm), so longas the machinery is visible to at least one sensor registered withrespect to the others. Alternatively, a registration object can be used,or a user interface, shown in display 320 and displaying the sceneobserved by the sensors, may allow a user to designate certain parts ofthe image as key elements of the machinery under control. In someembodiments, the interface provides an interactive 3D display that showsthe coverage of all sensors to aid in configuration. If the system is beconfigured with some degree of high-level information about themachinery being controlled (for purposes of control routines 350, forexample)—such as the location(s) of dangerous part or parts of themachinery and the stopping time and/or distance—analysis module 342 maybe configured to provide intelligent feedback as to whether the sensorsare providing sufficient coverage, and suggest placement for additionalsensors.

For example, analysis module 342 can be programmed to determine theminimum distance from the observed machinery at which it must detect aperson in order to stop the machinery by the time the person reaches it(or a safety zone around it), given conservative estimates of walkingspeed. (Alternatively, the required detection distance can be inputdirectly into the system via display 320.) Optionally, analysis module342 can then analyze the fields of view of all sensors to determinewhether the space is sufficiently covered to detect all approaches. Ifthe sensor coverage is insufficient, analysis module 342 can propose newlocations for existing sensors, or locations for additional sensors,that would remedy the deficiency. Otherwise, the control system willdefault to a safe state and control routines 350 will not permitmachinery to operate unless analysis module 342 verifies that allapproaches can be monitored effectively. Use of machine learning andgenetic or evolutionary algorithms can be used to determine optimalsensor placement within a cell. Parameters to optimize include but arenot limited to minimizing occlusions around the robot during operationand observability of the robot and workpieces.

If desired, this static analysis may include “background” subtraction.During an initial startup period, when it may be safely assumed there noobjects intruding into the workspace 100, analysis module 342 identifiesall voxels occupied by the static elements. Those elements can then besubtracted from future measurements and not considered as potentialintruding objects. Nonetheless, continuous monitoring is performed toensure that the observed background image is consistent with the spacemap 345 stored during the startup period. Background can also be updatedif stationary objects are removed or are added to the workspace

There may be some areas that sensors 102 cannot observe sufficiently toprovide safety, but that are guarded by other methods such as cages,etc. In this case, the user interface can allow the user to designatethese areas as safe, overriding the sensor-based safety analysis.Safety-rated soft-axis and rate limitations can also be used to limitthe envelope of the robot to improve performance of the system.

Once registration has been achieved, sensors 102 should remain in thesame location and orientation while the workspace 100 is monitored. Ifone or more sensors 102 are accidentally moved, the resulting controloutputs will be invalid and could result in a safety hazard. Analysismodule 342 may extend the algorithms used for initial registration tomonitor continued accuracy of registration. For example, during initialregistration analysis module 342 may compute a metric capturing theaccuracy of fit of the observed data to a model of the work cell staticelements that is captured during the registration process. As the systemoperates, the same metric can be recalculated. If at any time thatmetric exceeds a specified threshold, the registration is considered tobe invalid and an error condition is triggered; in response, if anymachinery is operating, a control routine 350 may halt it or transitionthe machinery to a safe state.

1.2 Identifying Occupied and Potentially Occupied Areas

Once the sensors have been registered, control system 112 periodicallyupdates space map 345—at a high fixed frequency (e.g., every analysiscycle) in order to be able to identify all intrusions into workspace100. Space map 345 reflects a fusion of data from some or all of thesensors 102. But given the nature of 3D data, depending on the locationsof the sensors 102 and the configuration of workspace 100, it ispossible that an object in one location will occlude the sensor's viewof objects in other locations, including objects (which may includepeople or parts of people, e.g. arms) that are closer to the dangerousmachinery than the occluding object. Therefore, to provide a reliablysafe system, the system monitors occluded space as well as occupiedspace.

In one embodiment, space map 345 is a voxel grid. In general, each voxelmay be marked as occupied, unoccupied or unknown; only empty space canultimately be considered safe, and only when any additional safetycriteria—e.g., minimum distance from a piece of controlled machinery—issatisfied. Raw data from each sensor is analyzed to determine whether,for each voxel, an object or boundary of the 3D mapped space has beendefinitively detected in the volume corresponding to that voxel. Toenhance safety, analysis module 342 may designate as empty only voxelsthat are observed to be empty by more than one sensor 102. Again, allspace that cannot be confirmed as empty is marked as unknown. Thus, onlyspace between a sensor 102 and a detected object or mapped 3D spaceboundary along a ray may be marked as empty.

If a sensor detects anything in a given voxel, all voxels that lie onthe ray beginning at the focal point of that sensor and passing throughthe occupied voxel, and which are between the focal point and theoccupied voxel, are classified as unoccupied, while all voxels that liebeyond the occupied voxel on that ray are classified as occluded forthat sensor; all such occluded voxels are considered “unknown.”Information from all sensors may be combined to determine which areasare occluded from all sensors; these areas are considered unknown andtherefore unsafe. Analysis module 342 may finally mark as “unoccupied”only voxels or workspace volumes that have been preliminarily marked atleast once (or, in some embodiments, at least twice) as “unoccupied.”Based on the markings associated with the voxels or discrete volumeswithin the workspace, analysis module 342 may map one or more safevolumetric zones within space map 345. These safe zones are outside asafety zone of the machinery and include only voxels or workspacevolumes marked as unoccupied.

A common failure mode of active optical sensors that depend onreflection, such as LIDAR and time-of-flight cameras, is that they donot return any signal from surfaces that are insufficiently reflective,and/or when the angle of incidence between the sensor and the surface istoo shallow. This can lead to a dangerous failure because this signalcan be indistinguishable from the result that is returned if no obstacleis encountered; the sensor, in other words, will report an empty voxeldespite the possible presence of an obstacle. This is why ISO standardsfor e.g. 2D LIDAR sensors have specifications for the minimumreflectivity of objects that must be detected; however, thesereflectivity standards can be difficult to meet for some 3D sensormodalities such as ToF. In order to mitigate this failure mode, analysismodule 342 marks space as empty only if some obstacle is definitivelydetected at further range along the same ray. By pointing sensorsslightly downward so that most of the rays will encounter the floor ifno obstacles are present, it is possible to conclusively analyze most ofthe workspace 100. But if the sensed light level in a given voxel isinsufficient to definitively establish emptiness or the presence of aboundary, the voxel is marked as unknown. The signal and threshold valuemay depend on the type of sensor being used. In the case of anintensity-based 3D sensor (for example, a time-of-flight camera) thethreshold value can be a signal intensity, which may be attenuated byobjects in the workspace of low reflectivity. In the case of a stereovision system, the threshold may be the ability to resolve individualobjects in the field of view. Other signal and threshold valuecombinations can be utilized depending on the type of sensor used.

A safe system can be created by treating all unknown space as though itwere occupied. However, in some cases this may be overly conservativeand result in poor performance. It is therefore desirable to furtherclassify unknown space according to whether it could potentially beoccupied. As a person moves within a 3D space, he or she will typicallyocclude some areas from some sensors, resulting in areas of space thatare temporarily unknown (see FIG. 1). Additionally, moving machinerysuch as an industrial robot arm can also temporarily occlude some areas.When the person or machinery moves to a different location, one or moresensors will once again be able to observe the unknown space and returnit to the confirmed-empty state in which it is safe for the robot ormachine to operate. Accordingly, in some embodiments, space may also beclassified as “potentially occupied.” Unknown space is consideredpotentially occupied when a condition arises where unknown space couldbe occupied. This could occur when unknown space is adjacent to entrypoints to the workspace or if unknown space is adjacent to occupied orpotentially occupied space. The potentially occupied space “infects”unknown space at a rate that is representative of a human moving throughthe workspace. Potentially occupied space stays potentially occupieduntil it is observed to be empty. For safety purposes, potentiallyoccupied space is treated the same as occupied space. It may bedesirable to use probabilistic techniques such as those based onBayesian filtering to determine the state of each voxel, allowing thesystem to combine data from multiple samples to provide higher levels ofconfidence in the results. Suitable models of human movement, includingpredicted speeds (e.g., an arm may be raised faster than a person canwalk), are readily available.

2. Classifying Objects

For many applications, the classification of regions in a workspace asdescribed above may be sufficient—e.g., if control system 112 ismonitoring space in which there should be no objects at all duringnormal operation. In many cases, however, it is desirable to monitor anarea in which there are at least some objects during normal operation,such as one or more machines and workpieces on which the machine isoperating. In these cases, analysis module 342 may be configured toidentify intruding objects that are unexpected or that may be humans.One suitable approach to such classification is to cluster individualoccupied voxels into objects that can be analyzed at a higher level.

To achieve this, analysis module 342 may implement any of severalconventional, well-known clustering techniques such as Euclideanclustering, K-means clustering and Gibbs-sampling clustering. Any ofthese or similar algorithms can be used to identify clusters of occupiedvoxels from 3D point cloud data. Mesh techniques, which determine a meshthat best fits the point-cloud data and then use the mesh shape todetermine optimal clustering, may also be used. Once identified, theseclusters can be useful in various ways.

One simple way clustering can be used is to eliminate small groups ofoccupied or potentially occupied voxels that are too small to possiblycontain a person. Such small clusters may arise from occupation andocclusion analysis, as described above, and can otherwise cause controlsystem 112 to incorrectly identify a hazard. Clusters can be trackedover time by simply associating identified clusters in each image framewith nearby clusters in previous frames or using more sophisticatedimage-processing techniques. The shape, size, or other features of acluster can be identified and tracked from one frame to the next. Suchfeatures can be used to confirm associations between clusters from frameto frame, or to identify the motion of a cluster. This information canbe used to enhance or enable some of the classification techniquesdescribed below. Additionally, tracking clusters of points can beemployed to identify incorrect and thus potentially hazardoussituations. For example, a cluster that was not present in previousframes and is not close to a known border of the field of view mayindicate an error condition.

In some cases it may be sufficient filter out clusters below a certainsize and to identify cluster transitions that indicate error states. Inother cases, however, it may be necessary to further classify objectsinto one or more of four categories: (1) elements of the machinery beingcontrolled by system 112, (2) the workpiece or workpieces that themachinery is operating on, and (3) other foreign objects, includingpeople, that may be moving in unpredictable ways and that can be harmedby the machinery. It may or may not be necessary to conclusivelyclassify people versus other unknown foreign objects. It may benecessary to definitively identify elements of the machinery as such,because by definition these will always be in a state of “collision”with the machinery itself and thus will cause the system to erroneouslystop the machinery if detected and not properly classified. Similarly,machinery typically comes into contact with workpieces, but it istypically hazardous for machinery to come into contact with people.Therefore, analysis module 342 should be able to distinguish betweenworkpieces and unknown foreign objects, especially people.

Elements of the machinery itself may be handled for classificationpurposes by the optional background-subtraction calibration stepdescribed above. In cases where the machinery changes shape, elements ofthe machinery can be identified and classified, e.g., by supplyinganalysis module 342 with information about these elements (e.g., asscalable 3D representations), and in some cases (such as industrialrobot arms) providing a source of instantaneous information about thestate of the machinery. Analysis module 342 may be “trained” byoperating machinery, conveyors, etc. in isolation under observation bythe sensors 102, allowing analysis module 342 to learn their preciseregions of operation resulting from execution of the full repertoire ofmotions and poses. Analysis module 342 may classify the resultingspatial regions as occupied.

Conventional computer-vision techniques may be employed to enableanalysis module 342 to distinguish between workpieces and humans. Theseinclude deep learning, a branch of machine learning designed to usehigher levels of abstraction in data. The most successful of thesedeep-learning algorithms have been convolutional neural networks (CNNs)and more recently recurrent neural networks (RNNs). However, suchtechniques are generally employed in situations where accidentalmisidentification of a human as a non-human does not cause safetyhazards. In order to use such techniques in the present environment, anumber of modifications may be needed. First, machine-learningalgorithms can generally be tuned to prefer false positives or falsenegatives (for example, logistic regression can be tuned for highspecificity and low sensitivity). False positives in this scenario donot create a safety hazard—if the robot mistakes a workpiece for ahuman, it will react conservatively. Additionally, multiple algorithmsor neural networks based on different image properties can be used,promoting the diversity that may be key to achieving sufficientreliability for safety ratings. One particularly valuable source ofdiversity can be obtained by using sensors that provide both 3D and 2Dimage data of the same object. If any one technique identifies an objectas human, the object will be treated as human. Using multiple techniquesor machine-learning algorithms, all tuned to favor false positives overfalse negatives, sufficient reliability can be achieved. In addition,multiple images can be tracked over time, further enhancingreliability—and again every object can be treated as human until enoughidentifications have characterized it as non-human to achievereliability metrics. Essentially, this diverse algorithmic approach,rather than identifying humans, identifies things that are definitelynot humans.

In addition to combining classification techniques, it is possible toidentify workpieces in ways that do not rely on any type of humanclassification at all. One approach is to configure the system byproviding models of workpieces. For example, a “teaching” step in systemconfiguration may simply supply images or key features of a workpiece toanalysis module 342, which searches for matching configurations in spacemap 345, or may instead involving training of a neural network toautomatically classify workpieces as such in the space map. In eithercase, only objects that accurately match the stored model are treated asworkpieces, while all other objects are treated as humans.

Another suitable approach is to specify particular regions within theworkspace, as represented in the space map 345, where workpieces willenter (such as the top of a conveyor belt). Only objects that enter theworkspace in that location are eligible for treatment as workpieces. Theworkpieces can then be modeled and tracked from the time they enter theworkspace until the time they leave. While a monitored machine such as arobot is handling a workpiece, control system 112 ensures that theworkpiece is moving only in a manner consistent with the expected motionof the robot end effector. Known equipment such as conveyor belts canalso be modeled in this manner. Humans may be forbidden from enteringthe work cell in the manner of a workpiece—e.g., sitting on conveyors.

All of these techniques can be used separately or in combination,depending on design requirements and environmental constraints. In allcases, however, there may be situations where analysis module 342 losestrack of whether an identified object is a workpiece. In thesesituations the system should to fall back to a safe state. An interlockcan then be placed in a safe area of the workspace where a human workercan confirm that no foreign objects are present, allowing the system toresume operation.

In some situations a foreign object enters the workspace, butsubsequently should be ignored or treated as a workpiece. For example, astack of boxes that was not present in the workspace at configurationtime may subsequently be placed therein. This type of situation, whichwill become more common as flexible systems replace fixed guarding, maybe addressed by providing a user interface (e.g., shown in display 320or on a device in wireless communication with control system 112) thatallows a human worker to designate the new object as safe for futureinteraction. Of course, analysis module 342 and control routines 350 maystill act to prevent the machinery from colliding with the new object,but the new object will not be treated as a potentially human objectthat could move towards the machinery, thus allowing the system tohandle it in a less conservative manner.

3. Generating Control Outputs

At this stage, analysis module 342 has identified all objects in themonitored area 100 that must be considered for safety purposes. Giventhis data, a variety of actions can be taken and control outputsgenerated. During static calibration or with the workspace in a defaultconfiguration free of humans, space map 345 may be useful to a human forevaluating sensor coverage, the configuration of deployed machinery, andopportunities for unwanted interaction between humans and machines. Evenwithout setting up cages or fixed guards, the overall workspace layoutmay be improved by channeling or encouraging human movement through theregions marked as safe zones, as described above, and away from regionswith poor sensor coverage.

Control routines 350, responsive to analysis module 342, may generatecontrol signals to operating machinery, such as robots, within workspace100 when certain conditions are detected.

This control can be binary, indicating either safe or unsafe conditions,or can be more complex, such as an indication of what actions are safeand unsafe. The simplest type of control signal is a binary signalindicating whether an intrusion of either occupied or potentiallyoccupied volume is detected in a particular zone. In the simplest case,there is a single intrusion zone and control system 112 provides asingle output indicative of an intrusion. This output can be delivered,for example, via an I/O port 327 to a complementary port on thecontrolled machinery to stop or limit the operation of the machinery. Inmore complex scenarios, multiple zones are monitored separately, and acontrol routine 350 issues a digital output via an I/O port 327 ortransceiver 325 addressed, over a network, to a target piece ofmachinery (e.g., using the Internet protocol or other suitableaddressing scheme).

Another condition that may be monitored is the distance between anyobject in the workspace and a machine, comparable to the output of a 2Dproximity sensor. This may be converted into a binary output byestablishing a proximity threshold below which the output should beasserted. It may also be desirable for the system to record and makeavailable the location and extent of the object closest to the machine.In other applications, such as a safety system for a collaborativeindustrial robot, the desired control output may include the location,shape, and extent of all objects observed within the area covered by thesensors 102.

4. Safe Action Constraints and Dynamic Determination of Safe Zones

ISO 10218 and ISO/TS 15066 describe speed and separation monitoring as asafety function that can enable collaboration between an industrialrobot and a human worker. Risk reduction is achieved by maintaining atleast a protective separation distance between the human worker androbot during periods of robot motion. This protective separationdistance is calculated using information including robot and humanworker position and movement, robot stopping distance, measurementuncertainty, system latency and system control frequency. When thecalculated separation distance decreases to a value below the protectiveseparation distance, the robot system is stopped. This methodology canbe generalized beyond industrial robotics to machinery.

For convenience, the following discussion focuses on dynamicallydefining a safe zone around a robot operating in the workspace 100. Itshould be understood, however, that the techniques described hereinapply not only to multiple robots but to any form of machinery that canbe dangerous when approached too closely, and which has a minimum safeseparation distance that may vary over time and with particularactivities undertaken by the machine. As described above, a sensor arrayobtains sufficient image information to characterize, in 3D, the robotand the location and extent of all relevant objects in the areasurrounding the robot at each analysis cycle. (Each analysis cycleincludes image capture, refresh of the frame buffers, and computationalanalysis; accordingly, although the period of the analysis or controlcycle is short enough for effective monitoring to occur in real time, itinvolves many computer clock cycles.) Analysis module 342 utilizes thisinformation along with instantaneous information about the current stateof the robot at each cycle to determine instantaneous, current safeaction constraints for the robot's motion. The constraints may becommunicated to the robot, either directly by analysis module 342 or viaa control routine 350, to the robot via transceiver 325 or and I/O port327.

The operation of the system is best understood with reference to theconceptual illustration of system organization and operation of FIG. 4.As described above, a sensor array 102 monitors the workspace 400, whichincludes a robot 402. The robot's movements are controlled by aconventional robot controller 407, which may be part of or separate fromthe robot itself; for example, a single robot controller may issuecommands to more than one robot. The robot's activities may primarilyinvolve a robot arm, the movements of which are orchestrated by robotcontroller 407 using joint commands that operate the robot arm joints toeffect a desired movement. An object-monitoring system (OMS) 410 obtainsinformation about objects from the sensors 102 and uses this sensorinformation to identify relevant objects in the workspace 400. OMS 410communicates with robot controller 407 via any suitable wired orwireless protocol. (In an industrial robot, control electronicstypically reside in an external control box. However, in the case of arobot with a built-in controller, OMS 410 communicates directly with therobot's onboard controller.) Using information obtained from the robot(and, typically, sensors 102), OMS 410 determines the robot's currentstate. OMS 410 thereupon determines safe-action constraints for robot402 given the robot's current state and all identified relevant objects.Finally, OMS 410 communicates the safe action constraints to robot 407.(It will be appreciated that, with reference to FIG. 3, the functions ofOMS 410 are performed in a control system 112 by analysis module 342and, in some cases, a control routine 350.)

4.1 Identifying Relevant Objects

The sensors 102 provide real-time image information that is analyzed byan object-analysis module 415 at a fixed frequency in the mannerdiscussed above; in particular, at each cycle, object analysis module415 identifies the precise 3D location and extent of all objects inworkspace 400 that are either within the robot's reach or that couldmove into the robot's reach at conservative expected velocities. If notall of the relevant volume is within the collective field of view of thesensors 102, OMS 410 may be configured to so determine and indicate thelocation and extent of all fixed objects within that region (or aconservative superset of those objects) and/or verify that otherguarding techniques have been used to prevent access to unmonitoredareas.

4.2 Determining Robot State

A robot state determination module (RSDM) 420 is responsive to data fromsensors 102 and signals from the robot 402 and/or robot controller 407to determine the instantaneous state of the robot. In particular, RSDM420 determines the pose and location of robot 402 within workspace 400;this may be achieved using sensors 102, signals from the robot and/orits controller, or data from some combination of these sources. RSDM 420may also determines the instantaneous velocity of robot 402 or anyappendage thereof; in addition, knowledge of the robot's instantaneousjoint accelerations or torques, or planned future trajectory may beneeded in order to determine safe motion constraints for the subsequentcycle as described below. Typically, this information comes from robotcontroller 407, but in some cases may be inferred directly from imagesrecorded by sensors 102 as described below.

For example, these data could be provided by the robot 402 or the robotcontroller 407 via a safety-rated communication protocol providingaccess to safety-rated data. The 3D pose of the robot may then bedetermined by combining provided joint positions with a static 3D modelof each link to obtain the 3D shape of the entire robot 402.

In some cases, the robot may provide an interface to obtain jointpositions that is not safety-rated, in which case the joint positionscan be verified against images from sensors 102 (using, for example,safety-rated software). For example, received joint positions may becombined with static 3D models of each link to generate a 3D model ofthe entire robot 402. This 3D image can be used to remove any objects inthe sensing data that are part of the robot itself. If the jointpositions are correct, this will fully eliminate all object dataattributed to the robot 402. If, however, the joint positions areincorrect, the true position of robot 402 will diverge from the model,and some parts of the detected robot will not be removed. Those pointswill then appear as a foreign object in the new cycle. On the previouscycle, it can be assumed that the joint positions were correct becauseotherwise robot 402 would have been halted. Since the base joint of therobot does not move, at least one of the divergent points must be closeto the robot. The detection of an unexpected object close to robot 402can then be used to trigger an error condition, which will cause controlsystem 112 (see FIG. 1) to transition robot 402 to a safe state.Alternately, sensor data can be used to identify the position of therobot using a correlation algorithm, such as described above in thesection on registration, and this detected position can be compared withthe joint position reported by the robot. If the joint positioninformation provided by robot 402 has been validated in this manner, itcan be used to validate joint velocity information, which can then beused to predict future joint positions. If these positions areinconsistent with previously validated actual joint positions, theprogram can similarly trigger an error condition. These techniquesenable use of a non-safety-rated interface to produce data that can thenbe used to perform additional safety functions.

Finally, RSDM 420 may be configured to determine the robot's joint stateusing only image information provided by sensors 102, without anyinformation provided by robot 402 or controller 407 sensors 102. Given amodel of all of the links in the robot, any of several conventional,well-known computer vision techniques can be used by RSDM 420 toregister the model to sensor data, thus determining the location of themodeled object in the image. For example, the ICP algorithm (discussedabove) minimizes the difference between two 3D point clouds. ICP oftenprovides a locally optimal solution efficiently, and thus can be usedaccurately if the approximate location is already known. This will bethe case if the algorithm is run every cycle, since robot 402 cannothave moved far from its previous position. Accordingly, globally optimalregistration techniques, which may not be efficient enough to run inreal time, are not required. Digital filters such as Kalman filters orparticle filters can then be used to determine instantaneous jointvelocities given the joint positions identified by the registrationalgorithm.

These image-based monitoring techniques often rely on being run at eachsystem cycle, and on the assumption that the system was in a safe stateat the previous cycle. Therefore, a test may be executed in when robot402 is started—for example, confirming that the robot is in a known,pre-configured “home” position and that all joint velocities are zero.It is common for automated equipment to have a set of tests that areexecuted by an operator at a fixed interval, for example, when theequipment is started up or on shift changes. Reliable state analysistypically requires an accurate model of each robot link. This model canbe obtained a priori, e.g. from 3D CAD files provided by the robotmanufacturer or generated by industrial engineers for a specificproject. However, such models may not be available, at least not for therobot and all of the possible attachments it may have.

In this case, it is possible for RSDM 420 to create the model itself,e.g., using sensors 102. This may be done in a separate training modewhere robot 402 runs through a set of motions, e.g., the motions thatare intended for use in the given application and/or a set of motionsdesigned to provide sensors 102 with appropriate views of each link. Itis possible, but not necessary, to provide some basic information aboutthe robot a priori, such as the lengths and rotational axes of eachlinks. During this training mode, RSDM 420 generates a 3D model of eachlink, complete with all necessary attachments. This model can then beused by RSDM 420 in conjunction with sensor images to determine therobot state.

4.3 Determining Safe-Action Constraints

In traditional axis- and rate-limitation applications, an industrialengineer calculates what actions are safe for a robot, given the plannedtrajectory of the robot and the layout of the workspace—forbidding someareas of the robot's range of motion altogether and limiting speed inother areas. These limits assume a fixed, static workplace environment.Here we are concerned with dynamic environments in which objects andpeople come, go, and change position; hence, safe actions are calculatedby a safe-action determination module (SADM) 425 in real time based onall sensed relevant objects and on the current state of robot 402, andthese safe actions may be updated each cycle. In order to be consideredsafe, actions should ensure that robot 402 does not collide with anystationary object, and also that robot 402 does not come into contactwith a person who may be moving toward the robot. Since robot 402 hassome maximum possible deceleration, controller 407 should be instructedto begin slowing the robot down sufficiently in advance to ensure thatit can reach a complete stop before contact is made.

One approach to achieving this is to modulate the robot's maximumvelocity (by which is meant the velocity of the robot itself or anyappendage thereof) proportionally to the minimum distance between anypoint on the robot and any point in the relevant set of sensed objectsto be avoided. The robot is allowed to operate at maximum speed when theclosest object is further away than some threshold distance beyond whichcollisions are not a concern, and the robot is halted altogether if anobject is within a certain minimum distance. Sufficient margin can beadded to the specified distances to account for movement of relevantobjects or humans toward the robot at some maximum realistic velocity.This is illustrated in FIG. 5. An outer envelope or 3D zone 502 isgenerated computationally by SADM 425 around the robot 504. Outside thiszone 502, all movements of the person P are considered safe because,within an operational cycle, they cannot bring the person sufficientlyclose to the robot 504 to pose a danger. Detection of any portion of theperson P′s body within a second 3D zone 508, computationally definedwithin zone 502, is registered by SADM 425 but robot 504 is allowed tocontinue operating at full speed. If any portion of the person P crossesthe threshold of zone 508 but is still outside an interior danger zone510, robot 504 is signaled to operate at a slower speed. If any portionof the person P crosses into the danger zone 510—or is predicted to doso within the next cycle based on a model of human movement—operation ofrobot 504 is halted. These zones may be updated if robot 504 is moved(or moves) within the environment.

A refinement of this technique is for SADM 425 to control maximumvelocity proportionally to the square root of the minimum distance,which reflects the fact that in a constant-deceleration scenario,velocity changes proportionally to the square root of the distancetraveled, resulting in a smoother and more efficient, but still equallysafe, result. A further refinement is for SADM 425 to modulate maximumvelocity proportionally to the minimum possible time to collision—thatis, to project the robot's current state forward in time, project theintrusions toward the robot trajectory, and identify the nearestpotential collision. This refinement has the advantage that the robotwill move more quickly away from an obstacle than toward it, whichmaximizes throughput while still correctly preserving safety. Since therobot's future trajectory depends not just on its current velocity buton subsequent commands, SADM 425 may consider all points reachable byrobot 402 within a certain reaction time given its current jointpositions and velocities, and cause control signals to be issued basedon the minimum collision time among any of these states. Yet a furtherrefinement is for SADM 425 to take into account the entire plannedtrajectory of the robot when making this calculation, rather than simplythe instantaneous joint velocities. Additionally, SADM 425 may, viarobot controller 407, alter the robot's trajectory, rather than simplyalter the maximum speed along that trajectory. It is possible to choosefrom among a fixed set of trajectories one that reduces or eliminatespotential collisions, or even to generate a new trajectory on the fly.

While not necessarily a safety violation, collisions with staticelements of the workspace are generally not desirable. The set ofrelevant objects can include all objects in the workspace, includingboth static background such as walls and tables, and moving objects suchas workpieces and human workers. Either from prior configuration orrun-time detection, sensors 102 and analysis module 342 may be able toinfer which objects could possibly be moving. In this case, any of thealgorithms described above can be refined to leave additional margins toaccount for objects that might be moving, but to eliminate those marginsfor objects that are known to be static, so as not to reduce throughputunnecessarily but still automatically eliminate the possibility ofcollisions with static parts of the work cell.

Beyond simply leaving margins to account for the maximum velocity ofpotentially moving objects, state estimation techniques based oninformation detected by the sensing system can be used to project themovements of humans and other objects forward in time, thus expandingthe control options available to control routines 350. For example,skeletal tracking techniques can be used to identify moving limbs ofhumans that have been detected and limit potential collisions based onproperties of the human body and estimated movements of, e.g., aperson's arm rather than the entire person.

4.4 Communicating Safe Action Constraints to the Robot

The safe-action constraints identified by SADM 425 may be communicatedby OMS 410 to robot controller 407 on each cycle via a robotcommunication module 430. As described above, communication module maycorrespond to an I/O port 327 interface to a complementary port on robotcontroller 407 or may correspond to transceiver 325. Most industrialrobots provide a variety of interfaces for use with external devices. Asuitable interface should operate with low latency at least at thecontrol frequency of the system. The interface can be configured toallow the robot to be programmed and run as usual, with a maximumvelocity being sent over the interface. Alternately, some interfacesallow for trajectories to be delivered in the form of waypoints. Usingthis type of an interface, the intended trajectory of robot 402 can bereceived and stored within OMS 410, which may then generate waypointsthat are closer together or further apart depending on the safe-actionconstraints. Similarly, an interface that allows input of target jointtorques can be used to drive trajectories computed in accordanceherewith. These types of interface can also be used where SADM 425chooses new trajectories or modifies trajectories depending on thesafe-action constraints.

As with the interface used to determine robot state, if robot 402supports a safety-rated protocol that provides real-time access to therelevant safety-rated control inputs, this may be sufficient. However, asafety-rated protocol is not available, additional safety-rated softwareon the system can be used to ensure that the entire system remains safe.For example, SADM 425 may determine the expected speed and position ofthe robot if the robot is operating in accordance with the safe actionsthat have been communicated. SADM 425 then determines the robot's actualstate as described above. If the robot's actions do not correspond tothe expected actions, SADM 425 causes the robot to transition to a safestate, typically using an emergency stop signal. This effectivelyimplements a real-time safety-rated control scheme without requiring areal-time safety-rated interface beyond a safety-rated stoppingmechanism.

In some cases a hybrid system may be optimal—many robots have a digitalinput that can be used to hold a safety-monitored stop. It may bedesirable to use a communication protocol for variable speed, forexample, when intruding objects are relatively far from the robot, butto use a digital safety-monitored stop when the robot must come to acomplete stop, for example, when intruding objects are close to therobot.

Certain embodiments of the present invention are described above. It is,however, expressly noted that the present invention is not limited tothose embodiments; rather, additions and modifications to what isexpressly described herein are also included within the scope of theinvention.

What is claimed is: 1.-21. (canceled)
 22. A safety system foridentifying safe regions in a three-dimensional (3D) workspace includingcontrolled machinery, the system comprising: a plurality of sensorsdistributed about the workspace, each of the sensors being associatedwith a grid of pixels for recording images of a portion of the workspacewithin a sensor field of view, the workspace portions partiallyoverlapping with each other; a controller configured to: register thesensors with respect to each other so that the images obtained by thesensors collectively represent the workspace; generate athree-dimensional representation of the workspace as a plurality of 3Dvolumes; for each of the sensors, upon detecting an occlusion on aline-of-sight ray path, (i) classify the volumes associated with theocclusion as occupied volumes, and (ii) classify the volumes betweensaid each of the sensors and the occupied volumes on the line-of-sightray path as unoccupied volumes; and map one or more safe volumetriczones within the workspace based at least in part on a collection of theunoccupied volumes associated with the plurality of sensors, wherein theone or more safe volumetric zones include the unoccupied volumes only.23. The safety system of claim 22, wherein the controller is furtherconfigured to map the one or more safe volumetric zones based at leastin part on a safety criterion.
 24. The safety system of claim 23,wherein the safety criterion defines a minimum distance from a piece ofthe controlled machinery.
 25. The safety system of claim 22, wherein theone or more safe volumetric zones include only the unoccupied volumesthat have been classified as unoccupied for at least two of the sensors.26. The safety system of claim 22, wherein the controller is furtherconfigured to identify a cluster of the occupied volumes and, basedthereon, identify an element associated with the machinery.
 27. Thesafety system of claim 22, wherein the controller is responsive toreal-time monitoring of the workspace by the sensors and is furtherconfigured to alter operation of the machinery in response to anintrusion into the one or more safety volumetric zones.
 28. The safetysystem of claim 27, wherein the one or more safety volumetric zones isdivided into a plurality of nested subzones within the 3D volume, adetected intrusion into each of the subzones resulting in a differentdegree of alteration of the operation of the machinery.
 29. The safetysystem of claim 22, wherein the sensors are 3D sensors.
 30. The safetysystem of claim 22, wherein at least some of the sensors include atleast one of time-of-flight sensors, 3D LIDAR sensors, or stereo visioncameras.
 31. The safety system of claim 22, wherein the controller isfurther configured to recognize a workpiece being handled by themachinery and treat the workpiece as a portion thereof in generating theone or more safety volumetric zones.
 32. A method of safely operatingmachinery in a three-dimensional workspace, the method comprising thesteps of: monitoring the workspace with a plurality of sensorsdistributed thereabout, each of the sensors being associated with a gridof pixels for recording images of a portion of the workspace within asensor field of view, the workspace portions partially overlapping witheach other; registering the sensors with respect to each other so thatthe images obtained by the sensors collectively represent the workspace;computationally generating a three-dimensional representation of theworkspace as a plurality of 3D volumes stored in a computer memory; foreach of the sensors, upon detecting an occlusion on a line-of-sight raypath, classifying (i) the volumes associated with the occlusion asoccupied volumes and (ii) the volumes between said each of the sensorsand the occupied volumes on the line-of-sight ray path as unoccupiedvolumes; and mapping one or more safe volumetric zones within theworkspace based at least in part on a collection of the unoccupiedvolumes associated with the plurality of sensors, wherein the one ormore safe volumetric zones include the unoccupied volumes only.
 33. Themethod of claim 32, further comprising mapping the one or more safevolumetric zones based at least in part on a safety criterion.
 34. Themethod of claim 33, wherein the safety criterion defines a minimumdistance from a piece of the controlled machinery.
 35. The method ofclaim 32, wherein the one or more safe volumetric zones include only theunoccupied volumes that have been classified as unoccupied for at leasttwo of the sensors.
 36. The method of claim 32, further comprisingidentifying a cluster of the occupied volumes and, based thereon,identifying an element associated with the machinery.
 37. The method ofclaim 32, further comprising real-time monitoring the workspace andaltering operation of the machinery in response to an intrusion into theone or more safety volumetric zones.
 38. The method of claim 37, whereinthe one or more safety volumetric zones is divided into a plurality ofnested subzones within the 3D volume, a detected intrusion into each ofthe subzones resulting in a different degree of alteration of theoperation of the machinery.
 39. The method of claim 37, furthercomprising computationally extending the intrusion into the workspace inaccordance with a model of human movement.
 40. The method of claim 32,further comprising recognizing a workpiece being handled by themachinery and treating the workpiece as a portion thereof in generatingthe one or more safety volumetric zones.
 41. The method of claim 40,wherein the workpiece recognition is performed using a neural network.